package com.zhanghu.backendZray.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zhanghu.backendZray.pojo.entity.Role;
import com.zhanghu.backendZray.pojo.request.role.RolePageRequest;
import com.zhanghu.backendZray.pojo.request.role.RoleRequest;
import com.zhanghu.backendZray.pojo.vo.RoleVo;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author zhangdong
 * @since 2024-07-20
 */
public interface RoleService extends IService<Role> {

    void add(RoleRequest roleRequest);

    void update(RoleRequest request);

    Page<RoleVo> page(RolePageRequest request);

    Integer getGuestRoleId();

    Integer getMemberRoleId();

    /**
     * 获取家庭组角色
     */
    Integer getFamilyRoleId();

    /**
     * 获取试用角色
     */
    Integer getTrialRoleId();

}
